import request from '@/utils/request'

// 查询用印申请列表
export function listOaSeal(query) {
  return request({
    url: '/seal/oaSeal/list',
    method: 'get',
    params: query
  })
}

// 查询用印申请详细
export function getOaSeal(id) {
  return request({
    url: '/seal/oaSeal/' + id,
    method: 'get'
  })
}

// 保存用印申请
export function saveOaSeal(data) {
  return request({
    url: '/seal/oaSeal/save',
    method: 'post',
    data: data
  })
}

// 保存归档附件
export function saveOaSealArchivedFile(data) {
  return request({
    url: '/seal/oaSeal/saveArchivedFile',
    method: 'post',
    data: data
  })
}

// 删除用印申请
export function delOaSeal(id) {
  return request({
    url: '/seal/oaSeal/' + id,
    method: 'delete'
  })
}

// 导出用印申请
export function exportOaSeal(query) {
  return request({
    url: '/seal/oaSeal/export',
    method: 'get',
    params: query
  })
}

// 删除用印明细
export function deleteOaSealDetail(id) {
  return request({
    url: '/seal/oaSeal/detail/' + id,
    method: 'delete'
  })
}
